package com.doeis.uwork.common;

public class Constant {
	public static final String REPLY_TYPE_TOPIC = "_t";//
	public static final String REPLY_TYPE_ALL = "_a";
	
	
	//共享类型	
	public static final Integer SHARE_TYPE_ITEM = 1;
	public static final Integer SHARE_TYPE_CHART = 2;
	public static final Integer SHARE_TYPE_TEMPLATE = 3;
	public static final Integer SHARE_TYPE_HNC = 4;//很能猜
	
	//计算器数据类型
	public static final Integer DATA_SOURCE_MANUAL = 0;//手工录入
	public static final Integer DATA_SOURCE_SHARE = 1;//共享池
	public static final Integer DATA_SOURCE_FORMULA = 2;//公式计算
	public static final Integer DATA_SOURCE_EXCHANGE = 3;//汇率	
	public static final Integer DATA_SOURCE_COLLECT = 4;//采集
	public static final Integer DATA_SOURCE_SALE = 5;//麦霸
	public static final Integer DATA_SOURCE_HNC = 6;//HNC
	
	//共享范围
	public static final Integer SHARE_SCOPE_ZHIDING = 0;//指定用户
	public static final Integer SHARE_SCOPE_DEP = 1;//本部门
	public static final Integer SHARE_SCOPE_COMPANY = 2; //本组
	
	public static final Integer SHARE_SCOPE_ZHIDING_FANGDO = 3;//指定用户
	public static final Integer SHARE_SCOPE_VIP = 4; //方都所有VIP组
	public static final Integer SHARE_SCOPE_ISP = 5;//方都所有用户	
	
	//MONOGDB 排序升序控制
	public static final Integer ORDER_ASCENDING = 1;//升序
	public static final Integer ORDER_DESCENDING  = -1;//降序
	
	//系统库
	public static final String DATABASE_MONGO_DOEIS = "doeisDB";
	
	//mina session的状态 状态   1 created 2 open  3 用户登录  4 colse 5 idle
	public static final int SESSION_STATUS_CREATE = 1;
	public static final int SESSION_STATUS_OPEN = 2;
	public static final int SESSION_STATUS_LOGIN = 3;
	public static final int SESSION_STATUS_CLOSE = 4;
	public static final int SESSION_STATUS_IDLE = 5;
	
	public static final String[] SESSION_STATUS_ARRAY = {"创建","打开","用户登录","关闭","空闲"};
	
	
	
	
	
}
